﻿<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="VetumaForSharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=07028d14424a10f8" %>
<%@ Assembly Name="Fujitsu.Vetuma.Toolkit, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ed2dbd0afd24f4eb" %>

<%@ Page Language="C#" MasterPageFile="~/_layouts/simple.master" AutoEventWireup="true"
    Inherits="VetumaForSharePoint.VetumaRegister" EnableViewState="true" EnableViewStateMac="false" %>

<%@ Register Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1" %>
<asp:Content ID="PageHeader" runat="server" ContentPlaceHolderID="PlaceHolderPageTitle">
    <cc1:EncodedLiteral ID="EncodedLiteralHeaderTitle" runat="server" Text="<%$ Resources:VetumaForSP, Register %>"
        EncodeMethod="HtmlEncode">
    </cc1:EncodedLiteral>
</asp:Content>
<asp:Content ID="PageTitle" runat="server" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea">
    <cc1:EncodedLiteral ID="EncodedLiteralTitle" runat="server" Text="<%$ Resources:VetumaForSP, Register %>"
        EncodeMethod="HtmlEncode">
    </cc1:EncodedLiteral>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <cc1:FormDigest ID="FormDigest1" runat="server">
    </cc1:FormDigest>
    <asp:Panel ID="Panel1" runat="server">
        <table id="TableRegister" runat="server" class="ms-input">
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label12" runat="server" Text="<%$ Resources:VetumaForSP, RequiredExplanation %>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources:VetumaForSP, FirstName %>"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelFirstName" Font-Bold="true" runat="server" Text=""></asp:Label>
                    <%--<asp:TextBox ID="TextBoxFirstName" runat="server" Enabled="false" Width="250px"></asp:TextBox>--%>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="<%$ Resources:VetumaForSP, LastName %>"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelLastName" Font-Bold="true" runat="server" Text=""></asp:Label>
                    <%--<asp:TextBox ID="TextBoxLastName" runat="server" Enabled="false" Width="250px"></asp:TextBox>--%>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="<%$ Resources:VetumaForSP, SocialSecurityNumber %>"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelSocialSecurityNumber" Font-Bold="true" runat="server" Text=""></asp:Label>
                    <%--<asp:TextBox ID="TextBoxSocialSecurityNumber" runat="server" Enabled="false" Width="250px"></asp:TextBox>--%>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="<%$ Resources:VetumaForSP, Email %>"></asp:Label>
                    <asp:Label ID="Label11" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxEmail" runat="server" Width="250px" MaxLength="256"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxEmail"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, CheckEmailExpression %>" ControlToValidate="TextBoxEmail"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:VetumaForSP, UserName %>"></asp:Label>
                    <asp:Label ID="Label10" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxUserName" runat="server" Width="250px" MaxLength="20"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxUserName">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:VetumaForSP, Password %>"></asp:Label>
                    <asp:Label ID="Label9" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxPassword" TextMode="Password" runat="server" Width="250px" MaxLength="128"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxPassword"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxPassword" 
                                                    ValidationExpression="^(?=(.*\W){1,})^(?=(.*\d){1,})^(.{6,12})$" Text="*" Display="Dynamic"
                                                    ToolTip="<%$ Resources:VetumaForSP, PasswordExpressionInfo %>" ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label17" runat="server" Width="250px" Text="<%$ Resources:VetumaForSP, PasswordExpressionInfoShort %>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="<%$ Resources:VetumaForSP, PasswordRetype %>"></asp:Label>
                    <asp:Label ID="Label8" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxPasswordRetype" TextMode="Password" runat="server" Width="250px" MaxLength="128"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxPasswordRetype"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Text="*" ControlToCompare="TextBoxPassword"
                        ControlToValidate="TextBoxPasswordRetype" ToolTip="<%$ Resources:VetumaForSP, CompareValidationText %>"
                        Operator="Equal"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="ButtonRegister" runat="server" OnClick="ButtonRegister_Click" Text="<%$ Resources:VetumaForSP, Register %>" />
                </td>
            </tr>
        </table>
        <table id="TableRecovery" runat="server" class="ms-input" visible="false">
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label15" runat="server" Text="<%$ Resources:VetumaForSP, UserHasAccount %>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label13" runat="server" Text="<%$ Resources:VetumaForSP, UserName %>" Font-Bold="true"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelUserNameRecovery" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label14" runat="server" Text="<%$ Resources:VetumaForSP, Password %>" Font-Bold="true"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelPasswordRecovery" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <table id="TableEmail" runat="server" class="ms-input" visible="false">
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label19" runat="server" Text="<%$ Resources:VetumaForSP, FirstLoginWithVetumaInfo %>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label16" runat="server" Text="<%$ Resources:VetumaForSP, Email %>"></asp:Label>
                    <asp:Label ID="Label18" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxEmail2" runat="server" Width="200px" MaxLength="256"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxEmail2"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, CheckEmailExpression %>" ControlToValidate="TextBoxEmail2"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="ButtonSaveEmail" runat="server" OnClick="ButtonSaveEmail_Click" Text="<%$ Resources:VetumaForSP, Continue %>" />
                </td>
            </tr>
        </table>
        <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
        <br />
        <br />
        <asp:HyperLink ID="HyperLinkToSite" runat="server" Text="<%$ Resources:VetumaForSP, Continue %>" Visible="false"></asp:HyperLink>
    </asp:Panel>
</asp:Content>
